//
//  BLDanmuStaticValue.swift
//  BLLiveTelecast
//
//  Created by BigL055 on 16/6/17.
//  Copyright © 2016年 bigL.liveTelecast.com. All rights reserved.
//




/// 弹幕Socket 常量
let kPostCode : UInt32 = 0x2b1;
let kReadTimeOut : NSTimeInterval = -1;
let kMaxBuffer : UInt = 1024;
let kEnd : UInt32 = 0;
let kMagicCode : String = "7oE9nPEG9xXV69phU31FYCLUagKeYtsF"


/// 正则相关枚举
enum DanmuTypeRegex :String {
    /// 游客登录信息 - loginres
    case isLoginres = "(?<=type@=loginres).*?(?=/)"
    /// 获取弹幕组 - setmsggroup
    case isSetMsgGroup = "(?<=type@=setmsggroup).*?(?=/)"
}

enum DanmuParameterRegex :String {
    /// 获取Type - 弹幕类型
    case DanmuType = "(?<=type@=).*?(?=/)"
    /// 游客ID
    case UserName = "(?<=username@=).*?(?=/)"
    /// 获取弹幕ID
    case GroupID = "(?<=gid@=).*?(?=/)"
    /// 礼物ID
    case GiftID = "(?<=gfid@=).*?(?=/)"
}
